#ifndef PULL_ACCEPT_MESSAGE_H_
#define PULL_ACCEPT_MESSAGE_H_

#include "ariba/ariba.h"

using_serialization;


class PullAcceptMessage  : public ariba::Message
{
	VSERIALIZEABLE;
public:


	/// Default constructor, required for automatic de-serialization
	PullAcceptMessage();

	/// Convenient constructor for setting up a new chat message object
	PullAcceptMessage(bool accept, uint64_t size, string key);

	string get_key();
	uint64_t get_size();
	bool get_accept();


private:
	uint8_t accept;
	uint64_t size;
	string key;
};

sznBeginDefault(PullAcceptMessage, X)
{
    X && accept && size && T(key);
} sznEnd();

#endif /* PULL_ACCEPT_MESSAGE_H_ */
